// System/src/main/java/org/example/model/Tractor.java
package org.example.model;

public class Tractor extends FarmMachine {
    private double towingCapacity;

    public Tractor(String id) {
        super(id);
        this.type = "拖拉机";
        this.towingCapacity = 5.0;
    }

    @Override
    public void performTask() {
        System.out.println(type + "[" + id + "] 正在执行牵引任务: 牵引能力=" + towingCapacity + "吨");
    }

    public double getTowingCapacity() {
        return towingCapacity;
    }

    public void setTowingCapacity(double towingCapacity) {
        this.towingCapacity = towingCapacity;
    }
}